#include <gtkmm/main.h>
#include "control.h"
#include "mainwindow.h"

int main (int argc, char *argv[])
{
    g_thread_init(NULL);
    Gtk::Main kit(argc, argv);
    MainWindow mainwindow;

  //Control *control = Control::Instance();
  mainwindow.show();
  while(true)
  {
      Gtk::Main::iteration();
      Control::Instance()->pluginUpdater();
      usleep(100);
  }
  Gtk::Main::quit();
  //Gtk::Main::run(mainwindow);

  return 0;
}
